import request from '../utils/request'

function list(data){
  return request({
    url:'/front/courseType/getCourseList',
    method:'get',
    params:data
  })
}
function clickCourse(data){
  return request({
    url:'/front/course/clickCourse',
    method:'get',
    params:data
  })
}
function getDetails(data){
  return request({
    url:'/front/course/getDetails/'+data,
    method:'get',
  })
}

function getListByTypeId(data){
  return request({
    url:'/front/course/getListByTypeId',
    method:'get',
    params:data
  })
}
export default {list,getDetails,getListByTypeId,clickCourse}